home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
MPW C++
/
MPW C++ 3.1
/
Examples
/
CPlusExamples
/
StreamCounter.h
< prev
next >
Wrap
Text File
|
1990-09-11
|
330b
|
28 lines
#ifndef TStreamCounter_H
#define TStreamCounter_H
#include <Stream.h>
struct aCount {
long chars;
long lines;
};
class TStreamCounter {
public:
TStreamCounter(fstream* =0);
void Reset(fstream* =0);
void Count();
aCount GetCount() { return fCount; };
private:
fstream* fStream;
aCount fCount;
};
#endif